package org.turl.objects;

/**
 * Created by tonyx
 * Date: Dec 30, 2007
 * Time: 9:45:00 AM
 */
public class Angle {
    double angle;
    public Angle(double angle) {
        this.angle = angle % (2*Math.PI);
    }
    public double getValue()
    {
        return angle;
    }
    public boolean equals(Object object)
    {
        if (!(object instanceof Angle))
            return false;
        Angle other = (Angle)object;
        return angle==other.getValue();
    }

    public int hashCode()
    {
        return (int)angle*100;
    }
}
